﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Mes.Pendant.WorkshopSetupService.Dto;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.WorkshopSetupService
{
    public interface IWorkshopSetupServices:IApplicationService
    {
        /// <summary>
        /// 添加车间设置信息
        /// </summary>
        /// <param name="insertWorksetupdto"></param>
        /// <returns></returns>
        Task<int> AddWorksetup(InsertWorksetupdto insertWorksetupdto);
        /// <summary>
        /// 获取车间设置数据
        /// </summary>
        /// <param name="workshopCode"></param>
        /// <param name="workshopName"></param>
        /// <param name="index"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetWorksetups(string? workshopCode, string? workshopName, int index = 1, int limit = 10);
        /// <summary>
        /// 删除车间设置
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteWorksetups(int id);
        /// <summary>
        /// 根据id获取车间设置信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        SelectIdWorkdto SelectByWorkId(int id);
        /// <summary>
        /// 修改物料型号
        /// </summary>
        /// <param name="selectIdWorkdto"></param>
        /// <returns></returns>
        Task<int> UpdateWorksets(SelectIdWorkdto selectIdWorkdto);
    }
}
